package com.itany.corejava.code07_常用类.zuoye;

/**
 * @author MissChen
 * @date 2024年03月04日 8:53
 */
public class College implements ShowInterface<College>{
    private String username;
    private int age;

    public College(String username, int age) {
        this.username = username;
        this.age = age;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String show(College college) {
        return this.getUsername()+college.getUsername();
    }
}
